package com.rpay.admin.param;

import org.hibernate.validator.constraints.NotBlank;

public class PostNews {
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getNewsType() {
        return newsType;
    }

    public void setNewsType(String newsType) {
        this.newsType = newsType;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @NotBlank(message = "标题不能为空")
    private String title;
    @NotBlank(message = "英文标题不能为空")
    private String enTitle;
    @NotBlank(message = "封面图片不能为空")
    private String cover;
    @NotBlank(message = "英文封面图片不能为空")
    private String enCover;
    @NotBlank(message = "内容不能为空")
    private String content;
    @NotBlank(message = "英文内容不能为空")
    private String enContent;
    @NotBlank(message = "副标题不能为空")
    private String subtitle;
    @NotBlank(message = "英文副标题不能为空")
    private String enSubtitle;
    @NotBlank(message = "新闻类型不能为空")
    private String newsType;
    @NotBlank(message = "来源不能为空")
    private String source;

    public String getEnTitle() {
        return enTitle;
    }

    public void setEnTitle(String enTitle) {
        this.enTitle = enTitle;
    }

    public String getEnCover() {
        return enCover;
    }

    public void setEnCover(String enCover) {
        this.enCover = enCover;
    }

    public String getEnContent() {
        return enContent;
    }

    public void setEnContent(String enContent) {
        this.enContent = enContent;
    }

    public String getEnSubtitle() {
        return enSubtitle;
    }

    public void setEnSubtitle(String enSubtitle) {
        this.enSubtitle = enSubtitle;
    }

    public String getEnSource() {
        return enSource;
    }

    public void setEnSource(String enSource) {
        this.enSource = enSource;
    }

    @NotBlank(message = "英文来源不能为空")
    private String enSource;

}
